<?php
namespace app\modules\v1\verify;

use yii\base\Model;

class LoginVerify extends Model
{
    public $username;
    public $password;

    public $xEcsU;
    public $xEcsS;

    public $userId;


    public function rules()
    {
        return [
            [['username','password'],'required','on'=>['dolog']],
            [['xEcsU'],'required','on'=>['islogin']],

            [['userId'],'required','on'=>['doinfo']],
        ];
    }
    public function scenarios()
    {
        return [
            'dolog' => ['username','password'],
            'islogin' => ['xEcsU','xEcsS'],
            'doinfo' => ['userId'],
        ];
    }
}
